home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: in2.uu.net!world!mv!usenet
- From: ENGR@GSSI.MV.COM (Michael Furman)
- Subject: Re: 'delete' dos not work !!!! (for me...)
- Message-ID: <DooE97.Bq@mv.mv.com>
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- Organization: GSSI
- Date: Fri, 22 Mar 1996 15:41:30 GMT
- References: <ROLLET.96Mar18215549@oriole.DMI.USherb.CA>
- X-Newsreader: WinVN 0.99.7
- X-Nntp-Posting-Host: gssi.mv.com
-
- In article <ROLLET.96Mar18215549@oriole.DMI.USherb.CA>,
- rollet@oriole.DMI.USherb.CA says...
- >
- >In that piece of code...
- >delete never free the variable donnee (or don in the second function)...
- > .... program text snipped ....
-
- Why do you think that "donee" is not being deallocated? You probably have
- some bug in program - it allocate some extra memory or corrupt memory
- allocation structures.
- You can define your own "operator new" and "operator delete" which will
- print some kinde of protocol of allocation / deallocation memory or even
- do some correctness check - it could help. Or use some commercial product
- like Purify or Bound Checker - if you can.
-
-
- --
- <<< If you received it by E-mail: it is a copy of post to the newsgroup >>>
- ---------------------------------------------------------------
- Michael Furman, (603)893-1109
- Geophysical Survey Systems, Inc. fax:(603)889-3984
- 13 Klein Drive - P.O. Box 97 engr@gssi.mv.com
- North Salem, NH 03073-0097 71543.1334@compuserve.com
- ---------------------------------------------------------------
-
-